package com.ruoyi.system.kysh.mapper;

import com.ruoyi.system.kysh.entity.AIInf;
import com.ruoyi.system.kysh.entity.AcceptInf;
import com.ruoyi.system.kysh.entity.TaskPlan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AcceptInfMapper {

    void bindAcceptAndTaskId(@Param("acceptId") Long acceptId,@Param("taskId") Long taskId);

    void save(AcceptInf acceptInf);

    Long selectAcceptIdByAcceptNum(String acceptNum);

    void updateAcceptInf(AcceptInf acceptInf);

    List<AcceptInf> selectInfByTaskId(Long taskId);

    AIInf selectAIInfByAcceptBindLoc(String bindVideo);

    int bindvideoaddress(@Param("bindVideo") String bindVideo,@Param("acceptId") Long acceptId);

    AcceptInf selectAcceptInfByAcceptNum(String acceptNum);

    TaskPlan selectTaskPlanByAcceptNum(String acceptNum);

    TaskPlan selectDeptName(String acceptNum);
    String selectIds(String acceptNum);

    String selectMorName(Integer id);
    String selectAcceptor(Integer id);


    List<Long> selectByAcceptNumAndPages(@Param("acceptNum") String acceptNum
            ,@Param("firstIndex") int firstIndex,@Param("pageSize") int pageSize);

    List<Long> selectByAcceptNumAndPagesAll(String acceptNum);

    List<Long> isAccept(Long taskId);

}
